<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
request.setCharacterEncoding("UTF-8");
String htmlData = request.getParameter("cont") != null ? request.getParameter("cont") : "";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>凯盛项目管理系统</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" />
	<link rel="stylesheet" href="kind/themes/default/default.css" />
	<link rel="stylesheet" href="kind/plugins/code/prettify.css" />
  </head>
  
  <body>
    <%@ include file="top.jsp" %>
    <%=htmlData%>
    <div class="container">
		<div class="row">
			<div class="span3">
				<div class="well" style="padding: 8px 0;margin-top:80px;" >
					<ul class="nav nav-list">
						<li class="nav-header">${sessionScope.pu.project.name }</li>
						<li>${sessionScope.user.username }:${sessionScope.pu.role }</li>
						<li class="divider"></li>
						<li><a href="project.jspx?id=${sessionScope.pu.projectid }"><i class="icon-home"></i>最新动态</a></li>
						<li><a href="goal.jspx"><i class="icon-flag"></i>目标</a></li>
						<li><a href="document.jspx"><i class="icon-folder-open"></i>资料库</a></li>
						<li ><a href="file.jspx"><i class="icon-file"></i>文件共享</a></li>
						<li ><a href="contact.jspx"><i class="icon-user"></i>联系人</a></li>
						<li class="active"><a href="idea.jspx"><i class="icon-fire icon-white"></i>想法</a></li>
						<li><a href="#"><i class="icon-warning-sign"></i>Bug</a></li>
						<li><a href="main.jspx?m=editProject&id=${pu.projectid }"><i class="icon-cog"></i>项目设置</a></li>
					</ul>
				</div>
			</div>
			<div class="span9">
				<form action="idea.jspx?m=newidea" method="post"  style="margin-top:90px;">
					<fieldset>
						<legend>发表新想法</legend>
						<div class="control-group">
							<label for="input01" class="control-label">标题</label>
							<div class="controls">
								<input type="text" class="span9" name="name" style="height:28px"/>
								
							</div>							
						</div>
						
						<div class="control-group">
							<label for="input01"   class="control-label">内容</label>
							<div class="controls">
								<textarea cols="30" name="cont"  rows="15" class="span9" ><%=htmlspecialchars(htmlData)%></textarea>
							</div>
						</div>
						<div class="form-actions">
							<button type="submit" id="btnSubmit" class="btn btn-primary">保存</button>
							<a class="btn" href="idea.jspx">返回</a>
							<!-- <button class="btn" onclick="idea.jspx">返回</button> -->
						</div>
					</fieldset>
				
				</form>
			
			</div>
		</div>
	</div>
	
	
	
	<script charset="utf-8" src="kind/kindeditor.js"></script>
	<script charset="utf-8" src="kind/lang/zh_CN.js"></script>
	<script charset="utf-8" src=".kind/plugins/code/prettify.js"></script>
	<script>
		
	</script>
  </body>
</html>
<%!
private String htmlspecialchars(String str) {
	str = str.replaceAll("&", "&amp;");
	str = str.replaceAll("<", "&lt;");
	str = str.replaceAll(">", "&gt;");
	str = str.replaceAll("\"", "&quot;");
	return str;
}
%>
